import { hussarRequest } from 'hussar-base';
import { PREFIX } from '#/prefixCommon';
/**
 * 查询
 */
export function hussarQueryPage(data) {
  return hussarRequest.postJson(`${PREFIX.name}/pfxt/sjmx/hussarQueryPage`, data);
}
/**
 * 表单查询
 */
export function formQuery(data) {
  return hussarRequest.get(`${PREFIX.name}/pfxt/sjmx/formQuery`, data);
}
/**
 * 新增或修改
 */
export function insertOrUpdate(data) {
  return hussarRequest.postJson(`${PREFIX.name}/pfxt/sjmx/insertOrUpdate`, data);
}
/**
 * 提交流程表单
 */
export function flowFormSubmit(data) {
  return hussarRequest.postJson(`${PREFIX.name}/pfxt/sjmx/flowFormSubmit`, data);
}
/**
 * 查询
 */
export function hussarQueryPage_order_custom(data) {
  return hussarRequest.postJson(`${PREFIX.name}/pfxt/sjmx/hussarQueryPage_order_custom`, data);
}
/**
 * 获取下一节点参与者
 */
export function queryNextAssignee(data) {
  return hussarRequest.postJson(`${PREFIX.name}/pfxt/sjmx/queryNextAssignee`, data);
}
/**
 * 流程表格删除
 */
export function flowTableFlagDelete(data) {
  return hussarRequest.postForm(`${PREFIX.name}/pfxt/sjmx/flowTableFlagDelete`, data);
}
/**
 * 流程表格删除(仅删除未启动流程和节点处于第一节点的流程)
 */
export function flowTableFlagDeleteUnStart(data) {
  return hussarRequest.postForm(`${PREFIX.name}/pfxt/sjmx/flowTableFlagDeleteUnStart`, data);
}
/**
 * 流程列表批量删除
 */
export function flowTableFlagDeleteBatch(data) {
  return hussarRequest.postForm(`${PREFIX.name}/pfxt/sjmx/flowTableFlagDeleteBatch`, data);
}
/**
 * 流程列表批量删除
 */
export function flowTableDeleteBatch(data) {
  return hussarRequest.postForm(`${PREFIX.name}/pfxt/sjmx/flowTableDeleteBatch`, data);
}
/**
 * 流程表格删除
 */
export function flowTableDelete(data) {
  return hussarRequest.postForm(`${PREFIX.name}/pfxt/sjmx/flowTableDelete`, data);
}
/**
 * 流程表格删除(仅删除未启动流程和节点处于第一节点的流程)
 */
export function flowTableDeleteUnStart(data) {
  return hussarRequest.postForm(`${PREFIX.name}/pfxt/sjmx/flowTableDeleteUnStart`, data);
}
